<template>
    <Navbar />
    <div class="max-w-screen-xl px-4 py-4 mx-auto sm:px-6 lg:px-8">
        <ol class="flex items-center whitespace-nowrap">
            <li class="inline-flex items-center">
                <a href="/"
                    class="flex items-center text-sm text-gray-500 hover:text-primary-600 focus:outline-none focus:text-primary-600 dark:text-neutral-500 dark:hover:text-primary-500 dark:focus:text-primary-500">
                    <svg class="shrink-0 me-3 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24"
                        viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                        stroke-linejoin="round">
                        <path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
                        <polyline points="9 22 9 12 15 12 15 22"></polyline>
                    </svg>
                    HomePage</a>
                <svg class="mx-2 text-gray-400 shrink-0 size-4 dark:text-neutral-600" xmlns="http://www.w3.org/2000/svg"
                    width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
                    stroke-linecap="round" stroke-linejoin="round">
                    <path d="m9 18 6-6-6-6"></path>
                </svg>
            </li>
            <li class="inline-flex items-center">
                <a href="/all-free-coloring-pages-printable"
                    class="flex items-center text-sm text-gray-500 hover:text-primary-600 focus:outline-none focus:text-primary-600 dark:text-neutral-500 dark:hover:text-primary-500 dark:focus:text-primary-500">All
                    Free Coloring Pages</a>
            </li>
        </ol>
    </div>
    <div class="max-w-screen-xl px-4 py-4 pb-10 mx-auto sm:px-6 lg:px-8 lg:pb-14">
        <div>
            <div class="max-w-screen-lg mx-auto space-y-4 text-center" v-if="titleView != null">
                <h1 class="text-3xl font-bold leading-tight tracking-tight text-gray-900 sm:text-4xl dark:text-white">
                    {{ titleView.values[0].title }}
                </h1>
            </div>
            <div class="mt-4" v-if="titleView != null">
                <!-- <p class="mb-2 text-base text-gray-800 sm:text-lg dark:text-gray-400"> {{titleView.values[0].title}}！ </p> -->
                <div class="relative" :class="{ 'h-[32px] overflow-hidden': titleView.show === false }">
                    <p class="mb-2 text-base text-gray-800 sm:text-lg dark:text-gray-400" :style="{'line-height: 2rem': index === 0}"
                        v-for="(item, index) in titleView.values">
                        {{ item.detailsvalue }} </p>
                    <div class="absolute bottom-0 right-0 inline-flex items-center bg-white cursor-pointer group" v-if="titleView.show === false" @click="titleView.show = !titleView.show"><span
                            class="mx-0.5">...</span><span
                            class="inline-flex items-center justify-center text-gray-500 bg-white group-hover:text-primary-600 h-7">查看更多</span><svg
                            class="rotate-180 shrink-0 ml-1.5 group-hover:text-primary-600" viewBox="0 0 1024 1024"
                            version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                            <path
                                d="M489.888365 289.944197c12.352854-12.349205 32.293055-12.429481 44.547387-0.176365l402.617159 402.618375c12.253116 12.253116 12.17284 32.193317-0.180014 44.542522l0 0c-12.347988 12.352854-32.294271 12.43313-44.542522 0.180014l-402.623241-402.617159C477.458884 322.237252 477.53916 302.297051 489.888365 289.944197L489.888365 289.944197 489.888365 289.944197zM489.888365 289.944197"
                                fill="currentColor"></path>
                            <path
                                d="M87.127681 735.916759c-12.352854-12.349205-12.434347-32.294271-0.18123-44.542522l402.618375-402.618375c12.253116-12.253116 32.194534-12.17284 44.547387 0.176365l0 0c12.347988 12.352854 12.429481 32.293055 0.176365 44.547387L131.670204 736.096773C119.417087 748.345024 99.47567 748.269612 87.127681 735.916759L87.127681 735.916759 87.127681 735.916759zM87.127681 735.916759"
                                fill="currentColor"></path>
                        </svg></div>
                </div>
                <div class="flex items-center justify-center mt-4" v-if="titleView.show === true" @click="titleView.show = false">
                    <div
                        class="flex items-center gap-1.5 justify-center text-gray-500 hover:text-primary-600 cursor-pointer">
                        <span>收起</span><svg class="shrink-0" viewBox="0 0 1024 1024" version="1.1"
                            xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                            <path
                                d="M489.888365 289.944197c12.352854-12.349205 32.293055-12.429481 44.547387-0.176365l402.617159 402.618375c12.253116 12.253116 12.17284 32.193317-0.180014 44.542522l0 0c-12.347988 12.352854-32.294271 12.43313-44.542522 0.180014l-402.623241-402.617159C477.458884 322.237252 477.53916 302.297051 489.888365 289.944197L489.888365 289.944197 489.888365 289.944197zM489.888365 289.944197"
                                fill="currentColor"></path>
                            <path
                                d="M87.127681 735.916759c-12.352854-12.349205-12.434347-32.294271-0.18123-44.542522l402.618375-402.618375c12.253116-12.253116 32.194534-12.17284 44.547387 0.176365l0 0c12.347988 12.352854 12.429481 32.293055 0.176365 44.547387L131.670204 736.096773C119.417087 748.345024 99.47567 748.269612 87.127681 735.916759L87.127681 735.916759 87.127681 735.916759zM87.127681 735.916759"
                                fill="currentColor"></path>
                        </svg>
                    </div>
                </div>
            </div>
            <section class="bg-white" v-if="mianPicView != null">
                <div class="max-w-screen-xl px-4 py-10 mx-auto sm:px-6 lg:px-8 lg:py-14">
                    <div class="flex flex-col-reverse items-center gap-4 sm:gap-8 md:grid lg:gap-7 md:grid-cols-2">
                        <div
                            class="overflow-hidden rounded-lg sm:min-h-[466px] bg-[#F8F9FB] p-6 flex flex-col justify-between items-center">
                            <a class="h-[354px] w-full flex items-center justify-center"
                                v-for="(item, index) in mianPicView.values" :key="item.id"
                                :style="{ display: index > 0 ? 'none' : 'inline-flex' }">
                                <img class="max-w-full max-h-full" :src="item.detailsvalue" alt="小丑嘲笑蝙蝠侠的绳索">
                            </a>
                            <div class="flex flex-wrap justify-center gap-2 mt-6">
                                <div v-for="item in mianPicView.values" :key="item.id"
                                    class="inline-flex items-center justify-center h-10 px-5 text-base border rounded-lg cursor-pointer hover:border-primary-600 hover:bg-primary-100 hover:text-primary-600 border-primary-300 bg-primary-50 text-primary-600">
                                    {{ item.title }}</div>
                            </div>
                        </div>
                        <div
                            class="flex flex-col items-center justify-between w-full h-full border border-dashed rounded-lg p-6 text-center sm:mb-6 lg:text-left border-gary-300 lg:mb-0 sm:min-h-[466px]">
                            <div class="w-full">
                                <div class="mb-2 font-medium">输入你想要绘制的蝙蝠侠填色页</div>
                                <div class="flex-1 border bg-[#F8F9Fb] rounded-md p-4 border-[#F1F1F1]">
                                    <textarea rows="3"
                                        class="w-full h-full leading-8 border-none bg-[#F8F9Fb] outline-none resize-none text-md"
                                        placeholder="输入你想要绘制的蝙蝠侠填色页，发挥你的想象"></textarea>
                                    <div class="flex flex-wrap gap-2">
                                        <div
                                            class="flex items-center gap-1 px-3 py-1.5 h-9 border rounded-md cursor-pointer group border-gary-50 hover:border-primary-600 hover:bg-primary-100 hover:text-primary-600 border-primary-300 bg-primary-50 text-primary-600">
                                            <div class="flex items-center justify-center w-4 h-4">
                                                <div
                                                    class="w-2 h-3 border rounded-[2px] group-hover:border-primary-600 group-hover:bg-primary-50 border-primary-600 bg-primary-50">
                                                </div>
                                            </div>
                                            <div class="leading-none text-md"> 默认 </div>
                                        </div>
                                        <div
                                            class="flex items-center gap-1 px-3 py-1.5 h-9 border rounded-md cursor-pointer group border-gary-50 hover:border-primary-600 hover:bg-primary-100 hover:text-primary-600 text-[#5D5D5D] bg-white">
                                            <div class="flex items-center justify-center w-4 h-4">
                                                <div
                                                    class="w-[11px] h-[11px] border rounded-[2px] group-hover:border-primary-600 group-hover:bg-primary-50 border-[#5D5D5D]">
                                                </div>
                                            </div>
                                            <div class="leading-none text-md"> 正方形 </div>
                                        </div>
                                        <div
                                            class="flex items-center gap-1 px-3 py-1.5 h-9 border rounded-md cursor-pointer group border-gary-50 hover:border-primary-600 hover:bg-primary-100 hover:text-primary-600 text-[#5D5D5D] bg-white">
                                            <div class="flex items-center justify-center w-4 h-4">
                                                <div
                                                    class="w-3 h-2 border rounded-[2px] group-hover:border-primary-600 group-hover:bg-primary-50 border-[#5D5D5D]">
                                                </div>
                                            </div>
                                            <div class="leading-none text-md"> 横向 </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="flex justify-center mt-6 mb-6 sm:mb-0">
                                    <div
                                        class="px-4 sm:px-8 cursor-pointer flex justify-center items-center gap-x-2.5 min-w-[220px] text-white h-12 bg-primary-600 hover:bg-primary-500 rounded-md">
                                        <svg xmlns="http://www.w3.org/2000/svg" width="21" height="20"
                                            viewBox="0 0 21 20" fill="none">
                                            <g>
                                                <path
                                                    d="M4.24984 18.3334V14.1667M4.24984 5.83341V1.66675M2.1665 3.75008H6.33317M2.1665 16.2501H6.33317M11.3332 2.50008L9.88802 6.25747C9.65301 6.86849 9.53551 7.174 9.35278 7.43099C9.19083 7.65875 8.99184 7.85774 8.76408 8.01969C8.50709 8.20242 8.20158 8.31992 7.59055 8.55493L3.83317 10.0001L7.59056 11.4452C8.20158 11.6802 8.50709 11.7977 8.76408 11.9805C8.99184 12.1424 9.19083 12.3414 9.35278 12.5692C9.53551 12.8262 9.65301 13.1317 9.88802 13.7427L11.3332 17.5001L12.7783 13.7427C13.0133 13.1317 13.1308 12.8262 13.3136 12.5692C13.4755 12.3414 13.6745 12.1424 13.9023 11.9805C14.1592 11.7977 14.4648 11.6802 15.0758 11.4452L18.8332 10.0001L15.0758 8.55493C14.4648 8.31992 14.1592 8.20242 13.9023 8.01969C13.6745 7.85774 13.4755 7.65875 13.3136 7.43099C13.1308 7.174 13.0133 6.86849 12.7783 6.25747L11.3332 2.50008Z"
                                                    stroke="white" stroke-width="1.67" stroke-linecap="round"
                                                    stroke-linejoin="round"></path>
                                            </g>
                                        </svg><span class="text-base">免费生成</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <section class="bg-white">
                <div>
                    <div v-if="categoryView != null"
                        class="flex flex-wrap items-center justify-center mb-4 text-lg font-bold leading-tight tracking-tight text-gray-900 gap-y-4 gap-x-8 sm:text-2xl dark:text-white">
                        当前填色页,属于的分类：
                        <ul class="flex flex-wrap gap-3">
                            <li v-for="item in categoryView.values" :key="item.id">
                                <a
                                    class="inline-flex items-center justify-center h-10 px-5 text-lg font-medium border rounded-lg border-primary-300 sm:text-lg text-primary-600 bg-primary-100 hover:text-white hover:bg-primary-600 hover:border-primary-600">
                                    {{ item.detailsvalue }}
                                </a>
                            </li>

                        </ul>
                    </div>

                    <div v-if="otherView != null"
                        class="min-h-0 text-lg font-bold leading-tight tracking-tight text-center text-gray-900 sm:text-2xl gap-x-8 dark:text-white sm:min-h-10">
                        浏览跟蝙蝠侠的相关的其他填色页：</div>
                    <ul v-if="otherView != null"
                        class="relative flex flex-wrap items-center gap-3 mt-4 transition-all ease-in-out delay-300 justify-center">
                        <li v-for="item in otherView.values" :key="item.id">
                            <a
                                class="inline-flex items-center justify-center h-10 px-5 text-base font-medium border rounded-lg border-primary-300 sm:text-lg text-primary-600 bg-primary-100 hover:text-white hover:bg-primary-600 hover:border-primary-600">
                                {{ item.detailsvalue }}
                            </a>
                        </li>

                    </ul>
                </div>
                <div class="grid grid-cols-2 gap-4 sm:gap-6 md:grid-cols-2 lg:grid-cols-4 mt-8">
                    <div v-for="item in categoryFourPicView" :key="item.id"
                        class="flex flex-col justify-between overflow-hidden transition bg-white border shadow-lg group rounded-xl hover:shadow-md focus:outline-none focus:shadow-md dark:bg-gray-800 dark:border-gray-700">
                        <a class="rounded-t-xl">
                            <div class="bg-gray-50 aspect-[2/3] overflow-hidden flex justify-center items-center">
                                <img :src="item.detailsvalue" :alt="item.title">
                            </div>
                        </a>
                        <div class="px-4 pt-2 pb-3 md:px-5 md:pt-5 md:pb-5">
                            <div class="tracking-tight">
                                <div class="inline-flex flex-wrap items-center max-w-full gap-2 group">
                                    <h3 :title="item.title"
                                        class="flex-1 mr-2 text-sm font-bold text-gray-800 sm:text-lg line-clamp-2 hover:text-primary-600 dark:text-neutral-300 dark:hover:text-white">
                                        <a href="/zh/batman/batman-hello-kitty-holding-batarangs" class="">{{ item.title
                                        }}</a>
                                    </h3><span
                                        class="block px-3 py-1 text-xs font-normal text-green-800 bg-green-100 rounded-full">
                                        中等难度 </span>
                                </div>
                            </div>
                            <a
                                class="flex items-center gap-2 mt-3 text-gray-500 dark:text-gray-400 hover:text-primary-600"><svg
                                    width="18" height="17" viewBox="0 0 18 17" fill="none"
                                    xmlns="http://www.w3.org/2000/svg">
                                    <path
                                        d="M4.92593 3.35714C4.92593 3.12981 5.01178 2.9118 5.16458 2.75105C5.31739 2.59031 5.52464 2.5 5.74075 2.5H15.5185C15.7346 2.5 15.9419 2.59031 16.0947 2.75105C16.2475 2.9118 16.3333 3.12981 16.3333 3.35714V10.2143C16.3333 10.4416 16.2475 10.6596 16.0947 10.8204C15.9419 10.9811 15.7346 11.0714 15.5185 11.0714M2.48149 5.92857H12.2593C12.7093 5.92857 13.0741 6.31233 13.0741 6.78571V13.6429C13.0741 14.1162 12.7093 14.5 12.2593 14.5H2.48149C2.03148 14.5 1.66667 14.1162 1.66667 13.6429V6.78571C1.66667 6.31233 2.03148 5.92857 2.48149 5.92857ZM9.00001 10.2143C9.00001 11.1611 8.27039 11.9286 7.37038 11.9286C6.47036 11.9286 5.74075 11.1611 5.74075 10.2143C5.74075 9.26751 6.47036 8.5 7.37038 8.5C8.27039 8.5 9.00001 9.26751 9.00001 10.2143Z"
                                        stroke="#6B7280" stroke-width="1.5" stroke-linecap="round"
                                        stroke-linejoin="round">
                                    </path>
                                </svg><span class="flex-1 w-0 text-sm font-light sm:text-base"> 点击打开 </span></a>
                        </div>
                    </div>
                </div>
            </section>
            <section class="bg-white mt-6 lg:mt-8 entrance-wrap">
                <div class="flex flex-col gap-4 md:grid md:grid-cols-2 md:gap-6 xl:gap-6">
                    <div class="col-span-1 bg-white border border-[#E5E7EB] rounded-xl p-5"
                        style="box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px 0px;">
                        <div class="relative"><img src="https://cdn.coloringbook.ai/images/func_3.png" alt=""><span
                                class="absolute flex items-center gap-1 px-4 py-2 bottom-3 func-btn"><svg
                                    xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"
                                    fill="none" class="shrink-0">
                                    <g clip-path="url(#clip0_67_1922)">
                                        <g>
                                            <path
                                                d="M8.66634 1.99967L9.82246 5.00558C10.0105 5.4944 10.1045 5.73881 10.2507 5.9444C10.3802 6.12661 10.5394 6.2858 10.7216 6.41536C10.9272 6.56154 11.1716 6.65555 11.6604 6.84356L14.6663 7.99967L11.6604 9.15579C11.1716 9.3438 10.9272 9.4378 10.7216 9.58399C10.5394 9.71355 10.3802 9.87274 10.2507 10.055C10.1045 10.2605 10.0105 10.5049 9.82246 10.9938L8.66634 13.9997L7.51022 10.9938C7.32221 10.5049 7.22821 10.2605 7.08203 10.055C6.95247 9.87274 6.79327 9.71355 6.61107 9.58399C6.40548 9.4378 6.16107 9.3438 5.67225 9.15579L2.66634 7.99967L5.67225 6.84356C6.16107 6.65555 6.40548 6.56154 6.61106 6.41536C6.79327 6.2858 6.95247 6.12661 7.08203 5.9444C7.22821 5.73881 7.32221 5.4944 7.51022 5.00558L8.66634 1.99967Z"
                                                fill="#111827"></path>
                                            <path
                                                d="M2.99967 14.6663V11.333M2.99967 4.66634V1.33301M1.33301 2.99967H4.66634M1.33301 12.9997H4.66634M8.66634 1.99967L7.51022 5.00558C7.32221 5.4944 7.22821 5.73881 7.08203 5.9444C6.95247 6.12661 6.79327 6.2858 6.61106 6.41536C6.40548 6.56154 6.16107 6.65555 5.67225 6.84356L2.66634 7.99967L5.67225 9.15579C6.16107 9.3438 6.40548 9.4378 6.61107 9.58399C6.79327 9.71355 6.95247 9.87274 7.08203 10.055C7.22821 10.2605 7.32221 10.5049 7.51022 10.9938L8.66634 13.9997L9.82246 10.9938C10.0105 10.5049 10.1045 10.2605 10.2507 10.055C10.3802 9.87274 10.5394 9.71355 10.7216 9.58399C10.9272 9.4378 11.1716 9.3438 11.6604 9.15579L14.6663 7.99967L11.6604 6.84356C11.1716 6.65555 10.9272 6.56154 10.7216 6.41536C10.5394 6.2858 10.3802 6.12661 10.2507 5.9444C10.1045 5.73881 10.0105 5.4944 9.82246 5.00558L8.66634 1.99967Z"
                                                stroke="#111827" stroke-width="1.33333" stroke-linecap="round"
                                                stroke-linejoin="round"></path>
                                        </g>
                                    </g>
                                    <defs>
                                        <clipPath>
                                            <rect width="16" height="16" fill="white"></rect>
                                        </clipPath>
                                    </defs>
                                </svg><span>一键转换</span></span></div>
                        <div class="flex flex-wrap items-center justify-between gap-4 mt-4 sm:flex-nowrap">
                            <div>
                                <p class="text-lg text-[#111827] font-semibold">图片变成填色页工具</p>
                                <p class="text-sm mt-1 text-[#6B7280]">把你的图片，变成填色页</p>
                            </div><a href="/zh/convert-photo-to-coloring-page"
                                class="inline-flex items-center justify-center flex-shrink-0 w-full h-12 px-4 py-3 leading-4 text-white rounded-lg cursor-pointer sm:w-auto bg-primary-600 border-primary-600 hover:border-primary-500 hover:bg-primary-500">立即生成</a>
                        </div>
                    </div>
                    <div class="col-span-1 bg-white border border-[#E5E7EB] rounded-xl p-5"
                        style="box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px 0px;">
                        <div class="relative">
                            <img src="https://cdn.coloringbook.ai/images/func_1.png" alt="">
                            <span class="absolute flex items-center gap-1 px-4 py-2 bottom-3 func-btn"><svg
                                    xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"
                                    fill="none">
                                    <g clip-path="url(#clip0_67_1922)">
                                        <g>
                                            <path
                                                d="M8.66634 1.99967L9.82246 5.00558C10.0105 5.4944 10.1045 5.73881 10.2507 5.9444C10.3802 6.12661 10.5394 6.2858 10.7216 6.41536C10.9272 6.56154 11.1716 6.65555 11.6604 6.84356L14.6663 7.99967L11.6604 9.15579C11.1716 9.3438 10.9272 9.4378 10.7216 9.58399C10.5394 9.71355 10.3802 9.87274 10.2507 10.055C10.1045 10.2605 10.0105 10.5049 9.82246 10.9938L8.66634 13.9997L7.51022 10.9938C7.32221 10.5049 7.22821 10.2605 7.08203 10.055C6.95247 9.87274 6.79327 9.71355 6.61107 9.58399C6.40548 9.4378 6.16107 9.3438 5.67225 9.15579L2.66634 7.99967L5.67225 6.84356C6.16107 6.65555 6.40548 6.56154 6.61106 6.41536C6.79327 6.2858 6.95247 6.12661 7.08203 5.9444C7.22821 5.73881 7.32221 5.4944 7.51022 5.00558L8.66634 1.99967Z"
                                                fill="#111827"></path>
                                            <path
                                                d="M2.99967 14.6663V11.333M2.99967 4.66634V1.33301M1.33301 2.99967H4.66634M1.33301 12.9997H4.66634M8.66634 1.99967L7.51022 5.00558C7.32221 5.4944 7.22821 5.73881 7.08203 5.9444C6.95247 6.12661 6.79327 6.2858 6.61106 6.41536C6.40548 6.56154 6.16107 6.65555 5.67225 6.84356L2.66634 7.99967L5.67225 9.15579C6.16107 9.3438 6.40548 9.4378 6.61107 9.58399C6.79327 9.71355 6.95247 9.87274 7.08203 10.055C7.22821 10.2605 7.32221 10.5049 7.51022 10.9938L8.66634 13.9997L9.82246 10.9938C10.0105 10.5049 10.1045 10.2605 10.2507 10.055C10.3802 9.87274 10.5394 9.71355 10.7216 9.58399C10.9272 9.4378 11.1716 9.3438 11.6604 9.15579L14.6663 7.99967L11.6604 6.84356C11.1716 6.65555 10.9272 6.56154 10.7216 6.41536C10.5394 6.2858 10.3802 6.12661 10.2507 5.9444C10.1045 5.73881 10.0105 5.4944 9.82246 5.00558L8.66634 1.99967Z"
                                                stroke="#111827" stroke-width="1.33333" stroke-linecap="round"
                                                stroke-linejoin="round"></path>
                                        </g>
                                    </g>
                                    <defs>
                                        <clipPath>
                                            <rect width="16" height="16" fill="white"></rect>
                                        </clipPath>
                                    </defs>
                                </svg>
                                <span>独角兽在云端跳舞</span>
                            </span>
                        </div>
                        <div class="flex flex-wrap items-center justify-between gap-4 mt-4 sm:flex-nowrap">
                            <div>
                                <p class="text-lg text-[#111827] font-semibold">文字转填色页工具</p>
                                <p class="text-sm mt-1 text-[#6B7280]">从幼儿到成人，支持4种难度的选择</p>
                            </div><a href="/zh/text-to-coloring-page"
                                class="inline-flex items-center justify-center flex-shrink-0 w-full h-12 px-4 py-3 leading-4 text-white rounded-lg cursor-pointer sm:w-auto bg-primary-600 border-primary-600 hover:border-primary-500 hover:bg-primary-500">立即生成</a>
                        </div>
                    </div>
                </div>
            </section>
            <section class="bg-white mt-6 lg:mt-8 entrance-wrap" v-if="personView != null"
                v-for="item in personView.values">
                <h2 class="text-lg font-bold leading-tight text-gray-900 lg:text-2xl dark:text-white"> {{ item.title }} </h2>
                <div class="relative" :class="{ 'h-[87px] overflow-hidden': personView.show == false }">
                    <p class="mt-6 text-base text-gray-800 sm:text-lg dark:text-gray-400" style="line-height: 2rem;">
                        {{ item.detailsvalue }}
                    </p>
                    <div class="absolute bottom-0 right-0 inline-flex items-center bg-white cursor-pointer group"
                        v-if="personView.show == false" @click="personView.show = true"><span
                            class="mx-0.5">...</span><span
                            class="inline-flex items-center justify-center text-gray-500 bg-white h-7 group-hover:text-primary-600">查看更多</span><svg
                            class="rotate-180 shrink-0 ml-1.5 group-hover:text-primary-600" viewBox="0 0 1024 1024"
                            version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                            <path
                                d="M489.888365 289.944197c12.352854-12.349205 32.293055-12.429481 44.547387-0.176365l402.617159 402.618375c12.253116 12.253116 12.17284 32.193317-0.180014 44.542522l0 0c-12.347988 12.352854-32.294271 12.43313-44.542522 0.180014l-402.623241-402.617159C477.458884 322.237252 477.53916 302.297051 489.888365 289.944197L489.888365 289.944197 489.888365 289.944197zM489.888365 289.944197"
                                fill="currentColor"></path>
                            <path
                                d="M87.127681 735.916759c-12.352854-12.349205-12.434347-32.294271-0.18123-44.542522l402.618375-402.618375c12.253116-12.253116 32.194534-12.17284 44.547387 0.176365l0 0c12.347988 12.352854 12.429481 32.293055 0.176365 44.547387L131.670204 736.096773C119.417087 748.345024 99.47567 748.269612 87.127681 735.916759L87.127681 735.916759 87.127681 735.916759zM87.127681 735.916759"
                                fill="currentColor"></path>
                        </svg>
                    </div>
                </div>
                <div class="flex items-center justify-center mt-4" v-if="personView.show == true"
                    @click="personView.show = false">
                    <div
                        class="flex items-center gap-1.5 justify-center text-gray-500 hover:text-primary-600 cursor-pointer">
                        <span>收起</span><svg class="shrink-0" viewBox="0 0 1024 1024" version="1.1"
                            xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                            <path
                                d="M489.888365 289.944197c12.352854-12.349205 32.293055-12.429481 44.547387-0.176365l402.617159 402.618375c12.253116 12.253116 12.17284 32.193317-0.180014 44.542522l0 0c-12.347988 12.352854-32.294271 12.43313-44.542522 0.180014l-402.623241-402.617159C477.458884 322.237252 477.53916 302.297051 489.888365 289.944197L489.888365 289.944197 489.888365 289.944197zM489.888365 289.944197"
                                fill="currentColor"></path>
                            <path
                                d="M87.127681 735.916759c-12.352854-12.349205-12.434347-32.294271-0.18123-44.542522l402.618375-402.618375c12.253116-12.253116 32.194534-12.17284 44.547387 0.176365l0 0c12.347988 12.352854 12.429481 32.293055 0.176365 44.547387L131.670204 736.096773C119.417087 748.345024 99.47567 748.269612 87.127681 735.916759L87.127681 735.916759 87.127681 735.916759zM87.127681 735.916759"
                                fill="currentColor"></path>
                        </svg>
                    </div>
                </div>
                <div class="grid grid-cols-2 gap-4 sm:gap-6 md:grid-cols-2 lg:grid-cols-4 mt-6 lg:mt-8">
                    <div v-for="item in personFourPicView" :key="item"
                        class="flex flex-col justify-between overflow-hidden transition bg-white border shadow-lg group rounded-xl hover:shadow-md focus:outline-none focus:shadow-md dark:bg-gray-800 dark:border-gray-700">
                        <a href="/zh/batman/animated-batman-gliding-over-city" class="rounded-t-xl">
                            <div class="bg-gray-50 aspect-[2/3] overflow-hidden flex justify-center items-center">
                                <img :src="item.detailsvalue" :alt="item.title">
                            </div>
                        </a>
                        <div class="px-4 pt-2 pb-3 md:px-5 md:pt-5 md:pb-5">
                            <div class="tracking-tight">
                                <div class="inline-flex flex-wrap items-center max-w-full gap-2 group">
                                    <h3 :title="item.title"
                                        class="flex-1 mr-2 text-sm font-bold text-gray-800 sm:text-lg line-clamp-2 hover:text-primary-600 dark:text-neutral-300 dark:hover:text-white">
                                        <a href="/zh/batman/animated-batman-gliding-over-city" class="">{{ item.title
                                            }}</a>
                                    </h3><span
                                        class="block px-3 py-1 text-xs font-normal text-green-800 bg-green-100 rounded-full">
                                        中等难度 </span>
                                </div>
                            </div><a href="/zh/batman/animated-batman-gliding-over-city"
                                class="flex items-center gap-2 mt-3 text-gray-500 dark:text-gray-400 hover:text-primary-600"><svg
                                    width="18" height="17" viewBox="0 0 18 17" fill="none"
                                    xmlns="http://www.w3.org/2000/svg">
                                    <path
                                        d="M4.92593 3.35714C4.92593 3.12981 5.01178 2.9118 5.16458 2.75105C5.31739 2.59031 5.52464 2.5 5.74075 2.5H15.5185C15.7346 2.5 15.9419 2.59031 16.0947 2.75105C16.2475 2.9118 16.3333 3.12981 16.3333 3.35714V10.2143C16.3333 10.4416 16.2475 10.6596 16.0947 10.8204C15.9419 10.9811 15.7346 11.0714 15.5185 11.0714M2.48149 5.92857H12.2593C12.7093 5.92857 13.0741 6.31233 13.0741 6.78571V13.6429C13.0741 14.1162 12.7093 14.5 12.2593 14.5H2.48149C2.03148 14.5 1.66667 14.1162 1.66667 13.6429V6.78571C1.66667 6.31233 2.03148 5.92857 2.48149 5.92857ZM9.00001 10.2143C9.00001 11.1611 8.27039 11.9286 7.37038 11.9286C6.47036 11.9286 5.74075 11.1611 5.74075 10.2143C5.74075 9.26751 6.47036 8.5 7.37038 8.5C8.27039 8.5 9.00001 9.26751 9.00001 10.2143Z"
                                        stroke="#6B7280" stroke-width="1.5" stroke-linecap="round"
                                        stroke-linejoin="round">
                                    </path>
                                </svg><span class="flex-1 w-0 text-sm font-light sm:text-base"> 点击打开 </span></a>
                        </div>
                    </div>
                </div>
            </section>
            <section class="bg-white mt-6 lg:mt-8 entrance-wrap" v-if="fillView != null">
                <h2 class="text-lg font-bold leading-tight text-gray-900 lg:text-2xl dark:text-white"> {{ fillView.values[0].title }} </h2>
                <div class="relative" :class="fillView.show ? 'relative' : 'h-[87px] overflow-hidden'">
                    <p class="mt-6 text-base text-gray-800 sm:text-lg dark:text-gray-400" style="line-height: 2rem;"
                        v-for="item in fillView.values">
                        {{ item.detailsvalue }}
                    </p>
                    <div class="absolute bottom-0 right-0 inline-flex items-center bg-white cursor-pointer group"
                        v-if="fillView.show == false" @click="fillView.show = !fillView.show">
                        <span class="mx-0.5">...</span><span
                            class="inline-flex items-center justify-center text-gray-500 bg-white h-7 group-hover:text-primary-600">查看更多</span><svg
                            class="rotate-180 shrink-0 ml-1.5 group-hover:text-primary-600" viewBox="0 0 1024 1024"
                            version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                            <path
                                d="M489.888365 289.944197c12.352854-12.349205 32.293055-12.429481 44.547387-0.176365l402.617159 402.618375c12.253116 12.253116 12.17284 32.193317-0.180014 44.542522l0 0c-12.347988 12.352854-32.294271 12.43313-44.542522 0.180014l-402.623241-402.617159C477.458884 322.237252 477.53916 302.297051 489.888365 289.944197L489.888365 289.944197 489.888365 289.944197zM489.888365 289.944197"
                                fill="currentColor"></path>
                            <path
                                d="M87.127681 735.916759c-12.352854-12.349205-12.434347-32.294271-0.18123-44.542522l402.618375-402.618375c12.253116-12.253116 32.194534-12.17284 44.547387 0.176365l0 0c12.347988 12.352854 12.429481 32.293055 0.176365 44.547387L131.670204 736.096773C119.417087 748.345024 99.47567 748.269612 87.127681 735.916759L87.127681 735.916759 87.127681 735.916759zM87.127681 735.916759"
                                fill="currentColor"></path>
                        </svg>
                    </div>
                </div>
                <div class="flex items-center justify-center mt-4" v-if="fillView.show == true"
                    @click="fillView.show = false">
                    <div
                        class="flex items-center gap-1.5 justify-center text-gray-500 hover:text-primary-600 cursor-pointer">
                        <span>收起</span><svg class="shrink-0" viewBox="0 0 1024 1024" version="1.1"
                            xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                            <path
                                d="M489.888365 289.944197c12.352854-12.349205 32.293055-12.429481 44.547387-0.176365l402.617159 402.618375c12.253116 12.253116 12.17284 32.193317-0.180014 44.542522l0 0c-12.347988 12.352854-32.294271 12.43313-44.542522 0.180014l-402.623241-402.617159C477.458884 322.237252 477.53916 302.297051 489.888365 289.944197L489.888365 289.944197 489.888365 289.944197zM489.888365 289.944197"
                                fill="currentColor"></path>
                            <path
                                d="M87.127681 735.916759c-12.352854-12.349205-12.434347-32.294271-0.18123-44.542522l402.618375-402.618375c12.253116-12.253116 32.194534-12.17284 44.547387 0.176365l0 0c12.347988 12.352854 12.429481 32.293055 0.176365 44.547387L131.670204 736.096773C119.417087 748.345024 99.47567 748.269612 87.127681 735.916759L87.127681 735.916759 87.127681 735.916759zM87.127681 735.916759"
                                fill="currentColor"></path>
                        </svg>
                    </div>
                </div>
                <div class="grid grid-cols-2 gap-4 sm:gap-6 md:grid-cols-2 lg:grid-cols-4 mt-6 lg:mt-8">
                    <div v-for="item in fillFourPicView" :key="item.id"
                        class="flex flex-col justify-between overflow-hidden transition bg-white border shadow-lg group rounded-xl hover:shadow-md focus:outline-none focus:shadow-md dark:bg-gray-800 dark:border-gray-700">
                        <a href="/zh/batman/animated-batman-gliding-over-city" class="rounded-t-xl">
                            <div class="bg-gray-50 aspect-[2/3] overflow-hidden flex justify-center items-center">
                                <img :src="item.detailsvalue" :alt="item.title">
                            </div>
                        </a>
                        <div class="px-4 pt-2 pb-3 md:px-5 md:pt-5 md:pb-5">
                            <div class="tracking-tight">
                                <div class="inline-flex flex-wrap items-center max-w-full gap-2 group">
                                    <h3 title="{{item.title}}"
                                        class="flex-1 mr-2 text-sm font-bold text-gray-800 sm:text-lg line-clamp-2 hover:text-primary-600 dark:text-neutral-300 dark:hover:text-white">
                                        <a class="">{{ item.title }}</a>
                                    </h3><span
                                        class="block px-3 py-1 text-xs font-normal text-green-800 bg-green-100 rounded-full">
                                        中等难度 </span>
                                </div>
                            </div><a
                                class="flex items-center gap-2 mt-3 text-gray-500 dark:text-gray-400 hover:text-primary-600"><svg
                                    width="18" height="17" viewBox="0 0 18 17" fill="none"
                                    xmlns="http://www.w3.org/2000/svg">
                                    <path
                                        d="M4.92593 3.35714C4.92593 3.12981 5.01178 2.9118 5.16458 2.75105C5.31739 2.59031 5.52464 2.5 5.74075 2.5H15.5185C15.7346 2.5 15.9419 2.59031 16.0947 2.75105C16.2475 2.9118 16.3333 3.12981 16.3333 3.35714V10.2143C16.3333 10.4416 16.2475 10.6596 16.0947 10.8204C15.9419 10.9811 15.7346 11.0714 15.5185 11.0714M2.48149 5.92857H12.2593C12.7093 5.92857 13.0741 6.31233 13.0741 6.78571V13.6429C13.0741 14.1162 12.7093 14.5 12.2593 14.5H2.48149C2.03148 14.5 1.66667 14.1162 1.66667 13.6429V6.78571C1.66667 6.31233 2.03148 5.92857 2.48149 5.92857ZM9.00001 10.2143C9.00001 11.1611 8.27039 11.9286 7.37038 11.9286C6.47036 11.9286 5.74075 11.1611 5.74075 10.2143C5.74075 9.26751 6.47036 8.5 7.37038 8.5C8.27039 8.5 9.00001 9.26751 9.00001 10.2143Z"
                                        stroke="#6B7280" stroke-width="1.5" stroke-linecap="round"
                                        stroke-linejoin="round">
                                    </path>
                                </svg><span class="flex-1 w-0 text-sm font-light sm:text-base"> 点击打开 </span></a>
                        </div>
                    </div>
                </div>
            </section>
            <section class="bg-white mt-6 sm:mt-8 lg:mt-12" v-if="ideaView != null">
                <h2 class="text-lg font-bold leading-tight text-gray-900 lg:text-2xl dark:text-white"> {{ ideaView.values[0].title }}
                </h2>
                <div :class="ideaView.show ? 'relative' : 'h-[87px] overflow-hidden'">
                    <p class="mt-6 text-base text-gray-800 sm:text-lg dark:text-gray-400 "
                        v-for="item in ideaView.values">
                        {{ item.detailsvalue }}
                    </p>
                </div>
                <div @click="ideaView.show = !ideaView.show"
                    class="relative flex gap-1.5 items-center justify-center text-gray-500 bg-white cursor-pointer min-h-10 hover:text-primary-600 view-more">
                    <span>{{ ideaView.show ? '收起' : '查看更多' }}</span>
                    <svg class="rotate-180 shrink-0" viewBox="0 0 1024 1024" version="1.1"
                        xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                        <path
                            d="M489.888365 289.944197c12.352854-12.349205 32.293055-12.429481 44.547387-0.176365l402.617159 402.618375c12.253116 12.253116 12.17284 32.193317-0.180014 44.542522l0 0c-12.347988 12.352854-32.294271 12.43313-44.542522 0.180014l-402.623241-402.617159C477.458884 322.237252 477.53916 302.297051 489.888365 289.944197L489.888365 289.944197 489.888365 289.944197zM489.888365 289.944197"
                            fill="currentColor"></path>
                        <path
                            d="M87.127681 735.916759c-12.352854-12.349205-12.434347-32.294271-0.18123-44.542522l402.618375-402.618375c12.253116-12.253116 32.194534-12.17284 44.547387 0.176365l0 0c12.347988 12.352854 12.429481 32.293055 0.176365 44.547387L131.670204 736.096773C119.417087 748.345024 99.47567 748.269612 87.127681 735.916759L87.127681 735.916759 87.127681 735.916759zM87.127681 735.916759"
                            fill="currentColor"></path>
                    </svg>
                </div>
                <div class="grid grid-cols-2 gap-4 sm:gap-6 md:grid-cols-2 lg:grid-cols-4 mt-6 lg:mt-8"
                    v-if="picView != null">
                    <div v-for="item in picView.values" :key="item"
                        class="flex flex-col justify-between overflow-hidden transition bg-white border shadow-lg group rounded-xl hover:shadow-md focus:outline-none focus:shadow-md dark:bg-gray-800 dark:border-gray-700">
                        <a href="/zh/batman/animated-batman-gliding-over-city" class="rounded-t-xl">
                            <div class="bg-gray-50 aspect-[2/3] overflow-hidden flex justify-center items-center">
                                <img :src="item.detailsvalue" :alt="item.title">
                            </div>
                        </a>
                        <div class="px-4 pt-2 pb-3 md:px-5 md:pt-5 md:pb-5">
                            <div class="tracking-tight">
                                <div class="inline-flex flex-wrap items-center max-w-full gap-2 group">
                                    <h3 :title="item.title"
                                        class="flex-1 mr-2 text-sm font-bold text-gray-800 sm:text-lg line-clamp-2 hover:text-primary-600 dark:text-neutral-300 dark:hover:text-white">
                                        <a class="">{{ item.title }}</a>
                                    </h3><span
                                        class="block px-3 py-1 text-xs font-normal text-green-800 bg-green-100 rounded-full">
                                        中等难度 </span>
                                </div>
                            </div><a href="/zh/batman/animated-batman-gliding-over-city"
                                class="flex items-center gap-2 mt-3 text-gray-500 dark:text-gray-400 hover:text-primary-600"><svg
                                    width="18" height="17" viewBox="0 0 18 17" fill="none"
                                    xmlns="http://www.w3.org/2000/svg">
                                    <path
                                        d="M4.92593 3.35714C4.92593 3.12981 5.01178 2.9118 5.16458 2.75105C5.31739 2.59031 5.52464 2.5 5.74075 2.5H15.5185C15.7346 2.5 15.9419 2.59031 16.0947 2.75105C16.2475 2.9118 16.3333 3.12981 16.3333 3.35714V10.2143C16.3333 10.4416 16.2475 10.6596 16.0947 10.8204C15.9419 10.9811 15.7346 11.0714 15.5185 11.0714M2.48149 5.92857H12.2593C12.7093 5.92857 13.0741 6.31233 13.0741 6.78571V13.6429C13.0741 14.1162 12.7093 14.5 12.2593 14.5H2.48149C2.03148 14.5 1.66667 14.1162 1.66667 13.6429V6.78571C1.66667 6.31233 2.03148 5.92857 2.48149 5.92857ZM9.00001 10.2143C9.00001 11.1611 8.27039 11.9286 7.37038 11.9286C6.47036 11.9286 5.74075 11.1611 5.74075 10.2143C5.74075 9.26751 6.47036 8.5 7.37038 8.5C8.27039 8.5 9.00001 9.26751 9.00001 10.2143Z"
                                        stroke="#6B7280" stroke-width="1.5" stroke-linecap="round"
                                        stroke-linejoin="round">
                                    </path>
                                </svg><span class="flex-1 w-0 text-sm font-light sm:text-base"> 点击打开 </span></a>
                        </div>
                    </div>
                </div>
            </section>
            <section class="bg-white mt-6 lg:mt-8 entrance-wrap">
                <div class="flex flex-col gap-4 md:grid md:grid-cols-2 md:gap-6 xl:gap-6">
                    <div class="col-span-1 bg-white border border-[#E5E7EB] rounded-xl p-5"
                        style="box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px 0px;">
                        <div class="relative"><img src="https://cdn.coloringbook.ai/images/func_3.png" alt=""><span
                                class="absolute flex items-center gap-1 px-4 py-2 bottom-3 func-btn"><svg
                                    xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"
                                    fill="none" class="shrink-0">
                                    <g clip-path="url(#clip0_67_1922)">
                                        <g>
                                            <path
                                                d="M8.66634 1.99967L9.82246 5.00558C10.0105 5.4944 10.1045 5.73881 10.2507 5.9444C10.3802 6.12661 10.5394 6.2858 10.7216 6.41536C10.9272 6.56154 11.1716 6.65555 11.6604 6.84356L14.6663 7.99967L11.6604 9.15579C11.1716 9.3438 10.9272 9.4378 10.7216 9.58399C10.5394 9.71355 10.3802 9.87274 10.2507 10.055C10.1045 10.2605 10.0105 10.5049 9.82246 10.9938L8.66634 13.9997L7.51022 10.9938C7.32221 10.5049 7.22821 10.2605 7.08203 10.055C6.95247 9.87274 6.79327 9.71355 6.61107 9.58399C6.40548 9.4378 6.16107 9.3438 5.67225 9.15579L2.66634 7.99967L5.67225 6.84356C6.16107 6.65555 6.40548 6.56154 6.61106 6.41536C6.79327 6.2858 6.95247 6.12661 7.08203 5.9444C7.22821 5.73881 7.32221 5.4944 7.51022 5.00558L8.66634 1.99967Z"
                                                fill="#111827"></path>
                                            <path
                                                d="M2.99967 14.6663V11.333M2.99967 4.66634V1.33301M1.33301 2.99967H4.66634M1.33301 12.9997H4.66634M8.66634 1.99967L7.51022 5.00558C7.32221 5.4944 7.22821 5.73881 7.08203 5.9444C6.95247 6.12661 6.79327 6.2858 6.61106 6.41536C6.40548 6.56154 6.16107 6.65555 5.67225 6.84356L2.66634 7.99967L5.67225 9.15579C6.16107 9.3438 6.40548 9.4378 6.61107 9.58399C6.79327 9.71355 6.95247 9.87274 7.08203 10.055C7.22821 10.2605 7.32221 10.5049 7.51022 10.9938L8.66634 13.9997L9.82246 10.9938C10.0105 10.5049 10.1045 10.2605 10.2507 10.055C10.3802 9.87274 10.5394 9.71355 10.7216 9.58399C10.9272 9.4378 11.1716 9.3438 11.6604 9.15579L14.6663 7.99967L11.6604 6.84356C11.1716 6.65555 10.9272 6.56154 10.7216 6.41536C10.5394 6.2858 10.3802 6.12661 10.2507 5.9444C10.1045 5.73881 10.0105 5.4944 9.82246 5.00558L8.66634 1.99967Z"
                                                stroke="#111827" stroke-width="1.33333" stroke-linecap="round"
                                                stroke-linejoin="round"></path>
                                        </g>
                                    </g>
                                    <defs>
                                        <clipPath>
                                            <rect width="16" height="16" fill="white"></rect>
                                        </clipPath>
                                    </defs>
                                </svg><span>一键转换</span></span></div>
                        <div class="flex flex-wrap items-center justify-between gap-4 mt-4 sm:flex-nowrap">
                            <div>
                                <p class="text-lg text-[#111827] font-semibold">图片变成填色页工具</p>
                                <p class="text-sm mt-1 text-[#6B7280]">把你的图片，变成填色页</p>
                            </div><a href="/zh/convert-photo-to-coloring-page"
                                class="inline-flex items-center justify-center flex-shrink-0 w-full h-12 px-4 py-3 leading-4 text-white rounded-lg cursor-pointer sm:w-auto bg-primary-600 border-primary-600 hover:border-primary-500 hover:bg-primary-500">立即生成</a>
                        </div>
                    </div>
                    <div class="col-span-1 bg-white border border-[#E5E7EB] rounded-xl p-5"
                        style="box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px 0px;">
                        <div class="relative">
                            <img src="https://cdn.coloringbook.ai/images/func_1.png" alt="">
                            <span class="absolute flex items-center gap-1 px-4 py-2 bottom-3 func-btn"><svg
                                    xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"
                                    fill="none">
                                    <g clip-path="url(#clip0_67_1922)">
                                        <g>
                                            <path
                                                d="M8.66634 1.99967L9.82246 5.00558C10.0105 5.4944 10.1045 5.73881 10.2507 5.9444C10.3802 6.12661 10.5394 6.2858 10.7216 6.41536C10.9272 6.56154 11.1716 6.65555 11.6604 6.84356L14.6663 7.99967L11.6604 9.15579C11.1716 9.3438 10.9272 9.4378 10.7216 9.58399C10.5394 9.71355 10.3802 9.87274 10.2507 10.055C10.1045 10.2605 10.0105 10.5049 9.82246 10.9938L8.66634 13.9997L7.51022 10.9938C7.32221 10.5049 7.22821 10.2605 7.08203 10.055C6.95247 9.87274 6.79327 9.71355 6.61107 9.58399C6.40548 9.4378 6.16107 9.3438 5.67225 9.15579L2.66634 7.99967L5.67225 6.84356C6.16107 6.65555 6.40548 6.56154 6.61106 6.41536C6.79327 6.2858 6.95247 6.12661 7.08203 5.9444C7.22821 5.73881 7.32221 5.4944 7.51022 5.00558L8.66634 1.99967Z"
                                                fill="#111827"></path>
                                            <path
                                                d="M2.99967 14.6663V11.333M2.99967 4.66634V1.33301M1.33301 2.99967H4.66634M1.33301 12.9997H4.66634M8.66634 1.99967L7.51022 5.00558C7.32221 5.4944 7.22821 5.73881 7.08203 5.9444C6.95247 6.12661 6.79327 6.2858 6.61106 6.41536C6.40548 6.56154 6.16107 6.65555 5.67225 6.84356L2.66634 7.99967L5.67225 9.15579C6.16107 9.3438 6.40548 9.4378 6.61107 9.58399C6.79327 9.71355 6.95247 9.87274 7.08203 10.055C7.22821 10.2605 7.32221 10.5049 7.51022 10.9938L8.66634 13.9997L9.82246 10.9938C10.0105 10.5049 10.1045 10.2605 10.2507 10.055C10.3802 9.87274 10.5394 9.71355 10.7216 9.58399C10.9272 9.4378 11.1716 9.3438 11.6604 9.15579L14.6663 7.99967L11.6604 6.84356C11.1716 6.65555 10.9272 6.56154 10.7216 6.41536C10.5394 6.2858 10.3802 6.12661 10.2507 5.9444C10.1045 5.73881 10.0105 5.4944 9.82246 5.00558L8.66634 1.99967Z"
                                                stroke="#111827" stroke-width="1.33333" stroke-linecap="round"
                                                stroke-linejoin="round"></path>
                                        </g>
                                    </g>
                                    <defs>
                                        <clipPath>
                                            <rect width="16" height="16" fill="white"></rect>
                                        </clipPath>
                                    </defs>
                                </svg>
                                <span>独角兽在云端跳舞</span>
                            </span>
                        </div>
                        <div class="flex flex-wrap items-center justify-between gap-4 mt-4 sm:flex-nowrap">
                            <div>
                                <p class="text-lg text-[#111827] font-semibold">文字转填色页工具</p>
                                <p class="text-sm mt-1 text-[#6B7280]">从幼儿到成人，支持4种难度的选择</p>
                            </div><a href="/zh/text-to-coloring-page"
                                class="inline-flex items-center justify-center flex-shrink-0 w-full h-12 px-4 py-3 leading-4 text-white rounded-lg cursor-pointer sm:w-auto bg-primary-600 border-primary-600 hover:border-primary-500 hover:bg-primary-500">立即生成</a>
                        </div>
                    </div>
                </div>
            </section>
            <section>
                <div class="flex flex-col mt-10 lg:mt-14 item-center">
                    <div v-if="categoryView != null"
                        class="flex flex-wrap items-center justify-center mb-4 text-lg font-bold leading-tight tracking-tight text-gray-900 gap-y-4 gap-x-8 sm:text-2xl dark:text-white">
                        当前填色页,属于的分类：
                        <ul class="flex flex-wrap gap-3">
                            <li v-for="item in categoryView.values" :key="item.id">
                                <a
                                    class="inline-flex items-center justify-center h-10 px-5 text-base font-medium rounded-lg sm:text-lg text-primary-600 bg-primary-100 hover:text-white hover:bg-primary-600">{{
                                        item.detailsvalue }}</a>
                            </li>
                        </ul>
                    </div>

                    <div v-if="otherView != null"
                        class="min-h-0 text-lg font-bold leading-tight tracking-tight text-center text-gray-900 sm:text-2xl gap-x-8 dark:text-white sm:min-h-10">
                        浏览跟蝙蝠侠的相关的其他填色页：</div>
                    <ul v-if="otherView != null"
                        class="relative flex flex-wrap items-center gap-3 mt-4 transition-all ease-in-out delay-300 justify-center">
                        <li v-for="item in otherView.values" :key="item.id">
                            <a
                                class="inline-flex items-center justify-center h-10 px-5 text-base font-medium border rounded-lg border-primary-300 sm:text-lg text-primary-600 bg-primary-100 hover:text-white hover:bg-primary-600 hover:border-primary-600">
                                {{ item.detailsvalue }}
                            </a>
                        </li>

                    </ul>
                </div>
            </section>
        </div>
    </div>

</template>

<script setup>

import { useRoute } from 'vue-router';
const route = useRoute();
const name = route.params._name;
import Navbar from "~/components/navbar/index.vue";
const titleView = ref(null)
const mianPicView = ref(null)
const categoryView = ref(null)
const otherView = ref(null)
const personView = ref(null)
const fillView = ref(null)
const ideaView = ref(null)
const picView = ref(null)
const categoryFourPicView = ref([])
const personFourPicView = ref([])
const fillFourPicView = ref([])


const { data } = await useFetch('/api/detail', { params: { name } })

const detailMap = data.value?.detail.data.detailsMap
console.log('detailMap', detailMap);

titleView.value = detailMap['标题块'] ? detailMap['标题块'][0] : null
titleView.value.show = false;
mianPicView.value = detailMap['主图块'] ? detailMap['主图块'][0] : null
categoryView.value = detailMap['归属分类'] ? detailMap['归属分类'][0] : null
otherView.value = detailMap['其他填充页'] ? detailMap['其他填充页'][0] : null
personView.value = detailMap['人物介绍'] ? detailMap['人物介绍'][0] : null
personView.value.show = false;
fillView.value = detailMap['填色指引组'] ? detailMap['填色指引组'][0] : null
fillView.value.show = false;
ideaView.value = detailMap['idea'] ? detailMap['idea'][0] : null
ideaView.value.show = false;
picView.value = detailMap['图片库'] ? detailMap['图片库'][0] : null

if (picView.value && picView.value.values.length > 4) {
    categoryFourPicView.value = picView.value.values.slice(0, 4)
}

if (picView.value && picView.value.values.length > 4) {
    personFourPicView.value = picView.value.values.slice(0, 4)
}

if (picView.value && picView.value.values.length > 4) {
    fillFourPicView.value = picView.value.values.slice(0, 4)
}

// console.log('titleView', titleView.value);

// 设置seo
// useSeoMeta({
//   title: titleView.value.values[0].detailsvalue,
//   ogTitle: titleView.value.values[0].detailsvalue,
//   description: titleView.value.values[1].detailsvalue,
//   ogDescription: titleView.value.values[1].detailsvalue,
// //   ogImage: 'https://example.com/image.png',
// //   twitterCard: 'summary_large_image',
// })


</script>

<style scoped>
.bg-primary-600 {
    background-color: rgba(255, 157, 8, 1);
}

.text-primary-600 {
    color: rgba(255, 157, 8, 1);
}

.border-primary-300 {
    border-color: rgba(255, 157, 8, .6);
}

.bg-primary-100 {
    background-color: rgba(255, 157, 8, .1);
}

.func-btn {
    backdrop-filter: blur(50px);
    background: #fcfcfccc;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    left: 50%;
    transform: translate(-50%);
}
</style>